package struct;

import java.util.Iterator;
import java.util.List;

/**
 * Created by qq65827 on 2015/1/31.
 */
public class utils {

    public static void printString(List<String> list) {
        Iterator<String> iterator = list.iterator();
        while (iterator.hasNext()) {
            System.out.print(iterator.next());
            System.out.println("\t");
        }
    }

    public static void printInteger(List<Integer> list) {
        Iterator<Integer> iterator = list.iterator();
        while (iterator.hasNext()) {
            System.out.print(iterator.next());
            System.out.println("\t");
        }
    }

    public static void printInt(int[] list) {
        for (int i = 0; i < list.length; i++) {
            System.out.print(list[i]);
            System.out.print("\t");
        }
    }

}
